package com.example.wryproject.database;

import ohos.data.orm.OrmObject;
import ohos.data.orm.annotation.Entity;
import ohos.data.orm.annotation.PrimaryKey;

@Entity(tableName = "playingIndex")
public class PlayingIndex extends OrmObject {
    @PrimaryKey()
    private int id = 0;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    private int oldIndex;

    public PlayingIndex(int oldIndex) {
        this.oldIndex = oldIndex;
    }

    public int getOldIndex() {
        return oldIndex;
    }

    public void setOldIndex(int oldIndex) {
        this.oldIndex = oldIndex;
    }

    public PlayingIndex() {
        super();
    }
}
